import request from "@/utils/request";

// POST /api/mobile/article/save   新增主题帖
export function article_save(query) {
  return request({
    url: "/article/mobile/article/save",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/edit   修改主题帖
export function article_edit(query) {
  return request({
    url: "/article/mobile/article/edit",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/list   分页查询
export function article_list(query) {
  return request({
    url: "/article/mobile/article/list",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/list   分页查询
export function article_listMy(query) {
  return request({
    url: "/article/mobile/article/listMy",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/findById   查询详情页数据
export function article_findById(query) {
  return request({
    url: "/article/mobile/article/findById",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/addReadNum   添加一次阅读数
export function article_addReadNum(query) {
  return request({
    url: "/article/mobile/article/addReadNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/addBrowseNum   添加一次浏览
export function article_addBrowseNum(query) {
  return request({
    url: "/article/mobile/article/addBrowseNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/addLikeNum   添加一次点赞
export function article_addLikeNum(query) {
  return request({
    url: "/article/mobile/article/addLikeNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/addCollectNum   添加一次收藏
export function article_addCollectNum(query) {
  return request({
    url: "/article/mobile/article/addCollectNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/decCollectNum   取消一次收藏
export function article_decCollectNum(query) {
  return request({
    url: "/article/mobile/article/decCollectNum",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/listMyCollect   我收藏的贴子
export function article_listMyCollect(query) {
  return request({
    url: "/article/mobile/article/listMyCollect",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/listCommentMy   评论我的
export function article_listCommentMy(query) {
  return request({
    url: "/article/mobile/article/listCommentMy",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/listLikeMy   点赞我的
export function article_listLikeMy(query) {
  return request({
    url: "/article/mobile/article/listLikeMy",
    method: "post",
    params: query
  });
}
// POST /api/mobile/article/listAllArticletype
export function article_listAllArticletype(query) {
    return request({
      url: "/article/mobile/article/listAllArticletype",
      method: "post",
      params: query
    });
  }
  //POST /api/mobile/article/delete
  export function article_delete(query) {
    return request({
      url: "/article/mobile/article/delete",
      method: "post",
      params: query
    });
  }
  ///api/mobile/active/decCollectNum
  export function decCollectNum(query) {
    return request({
      url: "/article/mobile/article/decCollectNum",
      method: "post",
      params: query
    });
  }